gtk4.git
6 years agoAdwaita: Fix focus in emoji chooser
Matthias Clasen [Tue, 17 Mar 2020 04:28:57 +0000 (00:28 -0400)]
Adwaita: Fix focus in emoji chooser

6 years agoemojichooser: Make the variation picker work again
Matthias Clasen [Tue, 17 Mar 2020 04:07:37 +0000 (00:07 -0400)]
emojichooser: Make the variation picker work again

We can't attach popovers to unsuspecting widget anymore.

6 years agoMerge branch 'x11-props' into 'master'
Matthias Clasen [Sun, 15 Mar 2020 00:47:03 +0000 (00:47 +0000)]
Merge branch 'x11-props' into 'master'

Drop X11-specific properties

See merge request GNOME/gtk!1526

6 years agoDrop GdkToplevel:accept-focus/:focus-on-map
Matthias Clasen [Sat, 14 Mar 2020 14:06:57 +0000 (10:06 -0400)]
Drop GdkToplevel:accept-focus/:focus-on-map

These properties were only ever implemented in the
X11 backend. If you want to use them, just use the
X properties directly.

6 years agoDrop focus-related properties
Matthias Clasen [Sat, 14 Mar 2020 14:05:11 +0000 (10:05 -0400)]
Drop focus-related properties

We don't use these, and they are only implemented on X11.

6 years agoDrop GdkToplevel:keep-above/below
Matthias Clasen [Sat, 14 Mar 2020 19:24:48 +0000 (15:24 -0400)]
Drop GdkToplevel:keep-above/below

These properties were only ever implemented in the X11
backend. If you want to keep windows above or below
on X11, just use the X properties.

6 years agowindow: Drop keep above/below
Matthias Clasen [Sat, 14 Mar 2020 05:43:30 +0000 (01:43 -0400)]
window: Drop keep above/below

6 years agotests: Stop using keep above/below
Matthias Clasen [Sat, 14 Mar 2020 05:43:15 +0000 (01:43 -0400)]
tests: Stop using keep above/below

6 years agoDrop GdkToplevel:sticky
Matthias Clasen [Sat, 14 Mar 2020 05:39:35 +0000 (01:39 -0400)]
Drop GdkToplevel:sticky

This was only ever implemented on X11. If you
want to use it there, just use the X properties
yourself.

6 years agowindow: Drop sticky
Matthias Clasen [Sat, 14 Mar 2020 05:28:43 +0000 (01:28 -0400)]
window: Drop sticky

This is an X11-only concept that we don't have
on Wayland.

6 years agotests: Stop sticking windows
Matthias Clasen [Sat, 14 Mar 2020 05:40:40 +0000 (01:40 -0400)]
tests: Stop sticking windows

6 years agoMerge branch 'window-attach' into 'master'
Matthias Clasen [Sat, 14 Mar 2020 13:19:35 +0000 (13:19 +0000)]
Merge branch 'window-attach' into 'master'

window: Drop gtk_window_set_attached_to

See merge request GNOME/gtk!1527

6 years agowindow: Drop gtk_window_set_attached_to
Matthias Clasen [Sat, 14 Mar 2020 05:59:22 +0000 (01:59 -0400)]
window: Drop gtk_window_set_attached_to

We are no longer attaching windows to widgets.

6 years agogdk: Documentation fixes
Matthias Clasen [Sat, 14 Mar 2020 05:23:56 +0000 (01:23 -0400)]
gdk: Documentation fixes

6 years agoDocument gdk_toplevel_set_modal
Matthias Clasen [Sat, 14 Mar 2020 05:23:09 +0000 (01:23 -0400)]
Document gdk_toplevel_set_modal

6 years agoSmall documentation fixes
Matthias Clasen [Sat, 14 Mar 2020 05:22:17 +0000 (01:22 -0400)]
Small documentation fixes

6 years agoUpdate gtk docs
Matthias Clasen [Sat, 14 Mar 2020 05:11:56 +0000 (01:11 -0400)]
Update gtk docs

Updates for recent api renames and removals.

6 years agoNEWS: Updates
Matthias Clasen [Sat, 14 Mar 2020 04:53:59 +0000 (00:53 -0400)]
NEWS: Updates

6 years agoMerge branch 'x11-resize' into 'master'
Matthias Clasen [Sat, 14 Mar 2020 03:35:31 +0000 (03:35 +0000)]
Merge branch 'x11-resize' into 'master'

x11: Update surface size for popups too

See merge request GNOME/gtk!1525

6 years agox11: Update surface size for popups too
Matthias Clasen [Sat, 14 Mar 2020 01:33:23 +0000 (21:33 -0400)]
x11: Update surface size for popups too

Without this, the back buffers of the wrong size
keep being used, causing flickery misdraws, as
seen when expanding the expander in the popover
in widget-factory.

6 years agoMerge branch 'fix-tools-tests' into 'master'
Matthias Clasen [Fri, 13 Mar 2020 20:36:54 +0000 (20:36 +0000)]
Merge branch 'fix-tools-tests' into 'master'

Fix tools tests

See merge request GNOME/gtk!1524

6 years agotestsuite: Specify the test protocol
Matthias Clasen [Fri, 13 Mar 2020 19:48:33 +0000 (15:48 -0400)]
testsuite: Specify the test protocol

If we don't specify protocol: 'tap', meson things
all is good even though my test yells "not ok".

6 years agoUpdate the ui file conversion output
Matthias Clasen [Fri, 13 Mar 2020 19:52:43 +0000 (15:52 -0400)]
Update the ui file conversion output

This changed because the popover property got renamed.

6 years agotestsuite: Update the settings test output
Matthias Clasen [Fri, 13 Mar 2020 19:52:25 +0000 (15:52 -0400)]
testsuite: Update the settings test output

6 years agotestsuite: Update tools tests
Matthias Clasen [Fri, 13 Mar 2020 19:34:54 +0000 (15:34 -0400)]
testsuite: Update tools tests

These tests need to test GTK4 ui file syntax.

6 years agotestsuite: Actually run tools tests
Matthias Clasen [Fri, 13 Mar 2020 19:11:07 +0000 (15:11 -0400)]
testsuite: Actually run tools tests

The script was looking in the wrong place for the tests.

6 years agoMerge branch 'wip/baedert/test-cflags' into 'master'
Matthias Clasen [Fri, 13 Mar 2020 18:40:46 +0000 (18:40 +0000)]
Merge branch 'wip/baedert/test-cflags' into 'master'

Pass (almost) all our cflags to tests, testsuite, examples, demos, ...

See merge request GNOME/gtk!1516

6 years agoUpdate POTFILES.in
Piotr Drąg [Fri, 13 Mar 2020 16:32:39 +0000 (17:32 +0100)]
Update POTFILES.in

6 years agoMerge branch 'wayland-max-cursor-scale' into 'master'
Matthias Clasen [Fri, 13 Mar 2020 15:49:02 +0000 (15:49 +0000)]
Merge branch 'wayland-max-cursor-scale' into 'master'

wayland: Stop capping cursor scales

See merge request GNOME/gtk!1522

6 years agowayland: Stop capping cursor scales
Matthias Clasen [Fri, 13 Mar 2020 15:13:02 +0000 (11:13 -0400)]
wayland: Stop capping cursor scales

We don't load entire themes anymore, so we can
easily accomodate larger cursor scales now.

6 years agoMerge branch 'update-broadway' into 'master'
Matthias Clasen [Fri, 13 Mar 2020 15:09:47 +0000 (15:09 +0000)]
Merge branch 'update-broadway' into 'master'

Update broadway

See merge request GNOME/gtk!1521

6 years agoMerge branch 'popover-accessible-private' into 'master'
Matthias Clasen [Fri, 13 Mar 2020 14:38:51 +0000 (14:38 +0000)]
Merge branch 'popover-accessible-private' into 'master'

a11y: Drop the private from GtkPopoverAccessible

See merge request GNOME/gtk!1520

6 years agobroadway: Inherit frame clock from parent surface
Alexander Larsson [Fri, 13 Mar 2020 14:26:22 +0000 (15:26 +0100)]
broadway: Inherit frame clock from parent surface

6 years agobroadway: Keep popups above their parent
Alexander Larsson [Fri, 13 Mar 2020 13:35:43 +0000 (14:35 +0100)]
broadway: Keep popups above their parent

We set the parent as a "transient parent" for popups, which means
they will not be stacked below the parent.

6 years agobroadway: Track surface position correctly
Alexander Larsson [Fri, 13 Mar 2020 13:33:07 +0000 (14:33 +0100)]
broadway: Track surface position correctly

surface->x/y (and various x,y arguments) should be in the parent
coordinates, so treat it as such. We also keep track of the root coords
as these are needed for popup positioning.

Also, drop the isTemp property server side and the weird initial
placement at (100, 100) in the daemon. We now fully control window
placement from the client instead. If this is not we want we should do
a serious design for that but until then lets do the simplest thing.

6 years agobroadway: Correctly track surface visibility in client
Alexander Larsson [Fri, 13 Mar 2020 09:49:44 +0000 (10:49 +0100)]
broadway: Correctly track surface visibility in client

We forgot to unset visible when hiding surfaces

6 years agobroadway: Ensure images are decoded, not only loaded
Alexander Larsson [Fri, 13 Mar 2020 07:56:56 +0000 (08:56 +0100)]
broadway: Ensure images are decoded, not only loaded

In firefox, onload will trigger when the image is loaded, but at
that point it may not be decoded yet so showing it will sometimers
trigger flashes. We use the new decode() feature instead which ensures
both that the image is loaded *and* decoded, thus fixing the flashes.

6 years agobroadway: Fix image updates for firefox
Alexander Larsson [Fri, 13 Mar 2020 07:10:41 +0000 (08:10 +0100)]
broadway: Fix image updates for firefox

For whatever reason we need to assign the function to a variable
to be able to call it.

6 years agobroadway: Handle browser hidpi scale factor
Alexander Larsson [Thu, 12 Mar 2020 10:12:01 +0000 (11:12 +0100)]
broadway: Handle browser hidpi scale factor

6 years agoa11y: Drop the private from GtkPopoverAccessible
Matthias Clasen [Fri, 13 Mar 2020 13:50:36 +0000 (09:50 -0400)]
a11y: Drop the private from GtkPopoverAccessible

It is not used, and empty structs upset msvc.

6 years agoMerge branch 'present-toplevel-2' into 'master'
Matthias Clasen [Fri, 13 Mar 2020 13:34:57 +0000 (13:34 +0000)]
Merge branch 'present-toplevel-2' into 'master'

surface api splitup

See merge request GNOME/gtk!1511

6 years agoMerge branch 'wip/hadess/fix-remote-filechooser-main' into 'master'
Bastien Nocera [Fri, 13 Mar 2020 12:36:10 +0000 (12:36 +0000)]
Merge branch 'wip/hadess/fix-remote-filechooser-main' into 'master'

Fix crasher/warnings when browsing remote filesystems

Closes #2482

See merge request GNOME/gtk!1490

6 years agowin32: Build fixes
Matthias Clasen [Thu, 12 Mar 2020 11:01:30 +0000 (07:01 -0400)]
win32: Build fixes

These fixes were done blindly, to make the ci pass,
and will need review by somebody with access to an
actual win32 system to make sure the surface subtypes
are implemented properly.

6 years agoMerge branch 'align-docs-fixes' into 'master'
Timm Bäder [Fri, 13 Mar 2020 06:17:46 +0000 (06:17 +0000)]
Merge branch 'align-docs-fixes' into 'master'

gtk: Tweak GTK_ALIGN_BASELINE docs

See merge request GNOME/gtk!1518

6 years agogtk: Tweak GTK_ALIGN_BASELINE docs
Matthew Leeds [Thu, 12 Mar 2020 19:36:09 +0000 (12:36 -0700)]
gtk: Tweak GTK_ALIGN_BASELINE docs

6 years agowin32: implement subtypes
Matthias Clasen [Thu, 12 Mar 2020 04:34:45 +0000 (00:34 -0400)]
win32: implement subtypes

6 years agoFix up gdk docs
Matthias Clasen [Mon, 9 Mar 2020 20:31:38 +0000 (13:31 -0700)]
Fix up gdk docs

6 years agosurface: document gdk_surface_translate_coordinates
Matthias Clasen [Mon, 9 Mar 2020 20:46:42 +0000 (13:46 -0700)]
surface: document gdk_surface_translate_coordinates

6 years agotoplevel: require GdkSurface
Matthias Clasen [Tue, 10 Mar 2020 11:24:04 +0000 (07:24 -0400)]
toplevel: require GdkSurface

6 years agopopup: require GdkSurface
Matthias Clasen [Tue, 10 Mar 2020 11:23:49 +0000 (07:23 -0400)]
popup: require GdkSurface

6 years agoDrop root coordinates from _gdk_device_query_state
Matthias Clasen [Mon, 9 Mar 2020 19:16:01 +0000 (12:16 -0700)]
Drop root coordinates from _gdk_device_query_state

Callers are not using them anyway. Update all callers.

6 years agoDrop mwm hints from api
Matthias Clasen [Mon, 9 Mar 2020 19:03:48 +0000 (12:03 -0700)]
Drop mwm hints from api

The GdkWMDecoration and GdkWMFunction enums
are no longer used in the api, so move them
to the x11 backend where they are used.

6 years agoMove fullscreen-mode to GdkToplevel
Matthias Clasen [Mon, 9 Mar 2020 18:49:59 +0000 (11:49 -0700)]
Move fullscreen-mode to GdkToplevel

6 years agoMove edge-constraints to GdkToplevel
Matthias Clasen [Mon, 9 Mar 2020 18:38:08 +0000 (11:38 -0700)]
Move edge-constraints to GdkToplevel

6 years agosurface: Drop unused vfuncs
Matthias Clasen [Wed, 11 Mar 2020 20:19:58 +0000 (16:19 -0400)]
surface: Drop unused vfuncs

These are now entirely unused.

6 years agoquartz: Drop unused vfuncs
Matthias Clasen [Wed, 11 Mar 2020 20:19:40 +0000 (16:19 -0400)]
quartz: Drop unused vfuncs

6 years agowin32: Drop some unused vfuncs
Matthias Clasen [Mon, 9 Mar 2020 17:41:44 +0000 (10:41 -0700)]
win32: Drop some unused vfuncs

toplevel_resize is unused in the frontend.

6 years agowayland: Drop some unused vfuncs
Matthias Clasen [Mon, 9 Mar 2020 17:35:30 +0000 (10:35 -0700)]
wayland: Drop some unused vfuncs

show, withdraw, raise, lower, toplevel_resize,
present_popup,
are all unused in the frontend.

6 years agox11: Drop some unused vfuncs
Matthias Clasen [Mon, 9 Mar 2020 17:35:00 +0000 (10:35 -0700)]
x11: Drop some unused vfuncs

show, withdraw, raise, lower are all unused in the frontend.

6 years agobroadway: Drop some unused vuncs
Matthias Clasen [Mon, 9 Mar 2020 17:34:08 +0000 (10:34 -0700)]
broadway: Drop some unused vuncs

show, withdraw, raise, lower, present_popup
are all unused by the frontend.

6 years agosurface: Drop gdk_surface_show
Matthias Clasen [Wed, 11 Mar 2020 20:16:33 +0000 (16:16 -0400)]
surface: Drop gdk_surface_show

No longer used.

6 years agowin32: Stop using gdk_surface_show
Matthias Clasen [Mon, 9 Mar 2020 17:25:06 +0000 (10:25 -0700)]
win32: Stop using gdk_surface_show

6 years agobroadway: Stop using gdk_surface_show
Matthias Clasen [Mon, 9 Mar 2020 17:24:52 +0000 (10:24 -0700)]
broadway: Stop using gdk_surface_show

6 years agowayland: Drop dead code
Matthias Clasen [Mon, 9 Mar 2020 17:24:30 +0000 (10:24 -0700)]
wayland: Drop dead code

6 years agox11: Stop using gdk_surface_show
Matthias Clasen [Mon, 9 Mar 2020 17:20:13 +0000 (10:20 -0700)]
x11: Stop using gdk_surface_show

6 years agogdk: Drop surface-type
Matthias Clasen [Mon, 9 Mar 2020 15:22:55 +0000 (08:22 -0700)]
gdk: Drop surface-type

We have interfaces for surface subtypes now.

6 years agowayland: Stop using surface-type
Matthias Clasen [Mon, 9 Mar 2020 15:04:19 +0000 (08:04 -0700)]
wayland: Stop using surface-type

6 years agox11: Stop using surface-type
Matthias Clasen [Mon, 9 Mar 2020 15:00:51 +0000 (08:00 -0700)]
x11: Stop using surface-type

6 years agobroadway: Stop using surface type
Matthias Clasen [Mon, 9 Mar 2020 15:00:26 +0000 (08:00 -0700)]
broadway: Stop using surface type

6 years agox11: Stop using gdk_surface_get_surface_type
Matthias Clasen [Sun, 8 Mar 2020 20:38:03 +0000 (13:38 -0700)]
x11: Stop using gdk_surface_get_surface_type

6 years agowayland: Stop using surface types
Matthias Clasen [Sun, 8 Mar 2020 20:37:13 +0000 (13:37 -0700)]
wayland: Stop using surface types

6 years agosurface: Stop using surface types
Matthias Clasen [Mon, 9 Mar 2020 20:00:08 +0000 (13:00 -0700)]
surface: Stop using surface types

6 years agosurface: Don't implement subtypes in the frontend
Matthias Clasen [Sun, 8 Mar 2020 16:21:18 +0000 (09:21 -0700)]
surface: Don't implement subtypes in the frontend

These are now provided by the backend.

6 years agox11: Only use state of toplevels
Matthias Clasen [Sun, 8 Mar 2020 16:20:07 +0000 (09:20 -0700)]
x11: Only use state of toplevels

Other surface subtypes don't have that property.

6 years agobroadway: Implement GdkPopup, GdkToplevel and GdkDragSurface
Matthias Clasen [Sat, 7 Mar 2020 22:11:16 +0000 (14:11 -0800)]
broadway: Implement GdkPopup, GdkToplevel and GdkDragSurface

Make subclasses of GdkX11Surface that implement these
interfaces.

6 years agoMerge branch 'migration-can-target-docs' into 'master'
Emmanuele Bassi [Thu, 12 Mar 2020 19:25:58 +0000 (19:25 +0000)]
Merge branch 'migration-can-target-docs' into 'master'

Docs: Refer to GtkWidget::can_target in migration guide

See merge request GNOME/gtk!1517

6 years agox11: Implement GdkPopup, GdkToplevel and GdkDragSurface
Matthias Clasen [Sat, 7 Mar 2020 21:59:24 +0000 (13:59 -0800)]
x11: Implement GdkPopup, GdkToplevel and GdkDragSurface

Make subclasses of GdkX11Surface that implement these
interfaces.

6 years agowayland: Implement GdkPopup, GdkToplevel and GdkDragSurface
Matthias Clasen [Sat, 7 Mar 2020 21:08:43 +0000 (13:08 -0800)]
wayland: Implement GdkPopup, GdkToplevel and GdkDragSurface

Make subclasses of GdkWaylandSurface that implement these
interfaces.

6 years agoDrop gdk_surface_set_opacity
Matthias Clasen [Wed, 4 Mar 2020 17:39:03 +0000 (09:39 -0800)]
Drop gdk_surface_set_opacity

6 years agox11: Stop using gdk_surface_set_opacity
Matthias Clasen [Wed, 4 Mar 2020 17:38:27 +0000 (09:38 -0800)]
x11: Stop using gdk_surface_set_opacity

We can just use the backend api directly.

6 years agowidget: Stop using gdk_surface_set_opacity
Matthias Clasen [Wed, 4 Mar 2020 17:38:01 +0000 (09:38 -0800)]
widget: Stop using gdk_surface_set_opacity

6 years agoDrop gdk_surface_show and gdk_surface_resize
Matthias Clasen [Wed, 4 Mar 2020 00:03:39 +0000 (16:03 -0800)]
Drop gdk_surface_show and gdk_surface_resize

We can now use GdkDragIcon api for the last cases
where this was used.

6 years agogtkdragicon: Use drag surface api
Matthias Clasen [Tue, 3 Mar 2020 23:56:23 +0000 (15:56 -0800)]
gtkdragicon: Use drag surface api

6 years agoAdd a GdkDragSurface interface
Matthias Clasen [Tue, 3 Mar 2020 23:55:45 +0000 (15:55 -0800)]
Add a GdkDragSurface interface

This will provide functionality specific to drag icons.

6 years agosurface: Drop redundant toplevel api
Matthias Clasen [Sat, 29 Feb 2020 17:05:42 +0000 (12:05 -0500)]
surface: Drop redundant toplevel api

The toplevel functionality to keep is moving to
GdkToplevel, and unused functions can go.

6 years agodocs: Stop using gdk_surface_get_decorations
Matthias Clasen [Tue, 3 Mar 2020 20:25:41 +0000 (12:25 -0800)]
docs: Stop using gdk_surface_get_decorations

6 years agotestgtk: Stop setting decorations and functions
Matthias Clasen [Thu, 5 Mar 2020 18:10:29 +0000 (10:10 -0800)]
testgtk: Stop setting decorations and functions

6 years agotests: Stop using gdk_surface_fullscreen
Matthias Clasen [Sun, 1 Mar 2020 18:10:39 +0000 (10:10 -0800)]
tests: Stop using gdk_surface_fullscreen

6 years agotestgtk: Stop using gdk_surface_set_icon_name
Matthias Clasen [Sun, 1 Mar 2020 17:32:50 +0000 (12:32 -0500)]
testgtk: Stop using gdk_surface_set_icon_name

Its not useful api, and will disappear.

6 years agowayland: Stop using gdk_surface_set_title
Matthias Clasen [Sun, 1 Mar 2020 17:31:26 +0000 (12:31 -0500)]
wayland: Stop using gdk_surface_set_title

Directly call the backend function for this, and for
gdk_surface_set_transient_for.

6 years agotestgtk: Stop using gdk_surface_get_state
Matthias Clasen [Sun, 1 Mar 2020 17:41:25 +0000 (12:41 -0500)]
testgtk: Stop using gdk_surface_get_state

6 years agodemo: stop using gdk_surface_get_state
Matthias Clasen [Sun, 1 Mar 2020 01:44:19 +0000 (20:44 -0500)]
demo: stop using gdk_surface_get_state

6 years agoa11y: Stop using gdk_surface_get_state
Matthias Clasen [Sun, 1 Mar 2020 01:44:02 +0000 (20:44 -0500)]
a11y: Stop using gdk_surface_get_state

6 years agox11: Stop using gdk_surface_get_state
Matthias Clasen [Sun, 1 Mar 2020 01:43:34 +0000 (20:43 -0500)]
x11: Stop using gdk_surface_get_state

All the surfaces we are dealing with here are toplevels.

6 years agogtk: use toplevel state getter
Matthias Clasen [Sun, 1 Mar 2020 01:32:15 +0000 (20:32 -0500)]
gtk: use toplevel state getter

6 years agowindow: Use GdkToplevel
Matthias Clasen [Sat, 29 Feb 2020 11:53:24 +0000 (06:53 -0500)]
window: Use GdkToplevel

6 years agoIntroduce GdkToplevel
Matthias Clasen [Sat, 29 Feb 2020 15:07:43 +0000 (10:07 -0500)]
Introduce GdkToplevel

This is a new interface for toplevel surfaces.

6 years agoIntroduce GdkToplevelLayout
Matthias Clasen [Sat, 29 Feb 2020 15:31:22 +0000 (10:31 -0500)]
Introduce GdkToplevelLayout

This will be used in a new GdkTopleve interface in
the near future.

6 years agoDocs: Refer to GtkWidget::can_target in migration guide
Jason Francis [Thu, 12 Mar 2020 18:10:38 +0000 (14:10 -0400)]
Docs: Refer to GtkWidget::can_target in migration guide

This makes the docs consistent with the renaming changes in commit
ef982b7d46125f206b59ae4222d26947bda86246.

6 years agobuild: Add -Wno-typedef-redefinition to build
Timm Bäder [Thu, 12 Mar 2020 07:32:34 +0000 (08:32 +0100)]
build: Add -Wno-typedef-redefinition to build

Clang otherwise complains about this